package com.cvit.dao;

import com.cvit.model.Student;
import com.cvit.model.StudentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface StudentMapper {
	
	/**
	 * 根据 姓名、身份证号查询
	 * */
	List<Student> selectBys(Student student);
	/**
	 * 根据 姓名、身份证号查询
	 * */
	List<Student> stuLogin(Student student);
	/**
	 * 查询考生号是否存在
	 * */
	List<Student> selectByExamineeNumber(Student student);
	/**
	 * 查询身份证号是否存在
	 * */
	List<Student> selectByCardNumber(Student student);
	
    long countByExample(StudentExample example);

    int deleteByExample(StudentExample example);

    int deleteByPrimaryKey(String id);

    int insert(Student record);

    int insertSelective(Student record);

    List<Student> selectByExample(StudentExample example);

    Student selectByPrimaryKey(String id);
    
    List<Student> selectOne(Student student);

    int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByExample(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);
    
    /**
     * 修改缴费状态
     * */
	void updatepayTypeById(String id);

}